/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 8/20/12
 * Time: 10:23 PM
 * To change this template use File | Settings | File Templates.
 */
package com.societyGames.codeAlong.settings
{

public class Settings
{
    public var location:String; //The location where to load XMLs from. If null, don't load the XMLs. Use embed instead.
    public var from:String; //where were we referred from?

    public function Settings(parameterObject:Object)
    {
        location = getValue(parameterObject, "location");
        from = getValue(parameterObject, "from");
    }

    private static function getValue(parameterObject:Object, name:String):String
    {
        if (parameterObject.hasOwnProperty(name))
        {
            return parameterObject[name];
        }
        return null;
    }
}
}
